<?php /* Smarty version 2.6.18, created on 2016-12-12 22:22:36
         compiled from syllabus/syllabus.staffinfo.tpl.php */ ?>
﻿<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title"><?php echo $this->_tpl_vars['staff_data']['staff_name']; ?>
教师个人课程表 <?php if ($this->_tpl_vars['set_data']['set_double'] == '2'): ?><a href="index.php?a=syllabus.info&staff_id=<?php echo $this->_tpl_vars['staff_data']['staff_id']; ?>
&syllabus_double=1"><?php if ($this->_tpl_vars['syllabus_double'] == '1'): ?>当前<?php endif; ?>单周</a> <a href="index.php?a=syllabus.info&staff_id=<?php echo $this->_tpl_vars['staff_data']['staff_id']; ?>
&syllabus_double=2"><?php if ($this->_tpl_vars['syllabus_double'] == '2'): ?>当前<?php endif; ?>双周</a><?php endif; ?></p>
                </div>
                    <div class="box-body">
						<form name="myform" method="get" action="">
					 <div class="col-md-3 form-group">
                              <label for="inputPassword3" class="col-sm-5 control-label" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
                                   教师姓名：
                              </label>
                              <div class="input-group col-md-7 col-xs-12">
                                  <input name="q" id="staff_name" type="text" class="form-control" value="" autocomplete="off" >
                                  <input name="staff_id" id="staff_id" type="hidden" class="form-control" value="">
                              </div> 
                        </div>
                        <div class="col-md-1 col-xs-12">
                            <input name="a" type="hidden" class="form-control" value="syllabus.staffinfo">
                           <button type="submit" class="btn btn-primary">确 定</button>
                        </div>
						</form>
                        <table class="table table-bordered text-center" id="mytable">					 
								  <tr>
									 <td>节次</td>
									 <?php $_from = $this->_tpl_vars['week_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
									 <td><?php echo $this->_tpl_vars['value']; ?>
</td>
									 <?php endforeach; endif; unset($_from); ?>
								  </tr>
								  <?php $_from = $this->_tpl_vars['out_am']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
								  <tr>
										 <td><?php echo $this->_tpl_vars['key']; ?>
</td>
										 <?php $_from = $this->_tpl_vars['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
										 <td>
											 <?php echo $this->_tpl_vars['v']['subject_name']; ?>
<br/><?php echo $this->_tpl_vars['v']['class_name']; ?>

										 </td>
										 <?php endforeach; endif; unset($_from); ?>
								 </tr>
								 <?php endforeach; endif; unset($_from); ?>
								  <tr>
								        <td></td>
								  </tr>
								  <?php $_from = $this->_tpl_vars['out_pm']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
								  <tr>
										 <td><?php echo $this->_tpl_vars['key']; ?>
</td>
										 <?php $_from = $this->_tpl_vars['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
										 <td>
											 <?php echo $this->_tpl_vars['v']['subject_name']; ?>
<br/><?php echo $this->_tpl_vars['v']['class_name']; ?>

										 </td>
										 <?php endforeach; endif; unset($_from); ?>
								 </tr>
								 <?php endforeach; endif; unset($_from); ?>
                         </table>  
				    </div><!--box-body -->
             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>

 <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script src="static/js/run_prettify.js"></script>
<script src="static/js/jquery.mockjax.js"></script>
<script src="static/js/bootstrap-typeahead.js"></script>
 <script>
		$(function() {
			function displayResult(item) {
				$("#staff_id").val(item.value);
			}
			$('#staff_name').typeahead({
        source: [
			<?php $_from = $this->_tpl_vars['staff_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
            { id: <?php echo $this->_tpl_vars['value']['staff_id']; ?>
, name: '<?php echo $this->_tpl_vars['value']['staff_name']; ?>
' },
			<?php endforeach; endif; unset($_from); ?>
        ],

				onSelect: displayResult,
			});
		  
		});
	</script>
 
 
 
 
 